package com.fourpigeon.service;

import java.util.List;

import com.fourpigeon.domain.*;
import org.springframework.transaction.annotation.Transactional;

//挂载事务
@Transactional
public interface UserService {
    /**
     * 根据手机号查询
     * @param phone
     * @return
     */
    public User geyByPhone(String phone);

    Result login(LoginDTO loginDTO);

    Result loginNameWithPassWord(LoginDTO loginDTO);

    Result register(RegisterDTO registerDTO);

    Result loginPhoneCode(LoginDTO loginDTO);

    Result sendCode(String phone);

    Result getMe();

    Result getOther(Long userId);

    Result updateInfo(UserInfo user);

    Result loginWechat(String code,String userName);

    Result sendIssue(Issue issue);

    Result logOut(String authorization);

    Result getMyDailyPage(Long startId);

    Result getMyDealPage(Long startId);

    Result getMyAgreePage(Short blogType,Long startId);

    Result getMyPracticePage(Long startId);
}
